package work.atpgroup.service;

import work.atpgroup.entity.ResourceLink;

import java.util.List;

public interface ResourceService {
    int insertResourceLink(ResourceLink resourceLink);
    int updateResourceLink(ResourceLink resourceLink);
    int deleteResourceLinkById(Integer id);
    int deleteResourceLinkByUserId(Integer userId);
    String getResourceLinkPathById(Integer id);
    List<String> getResourceLinkPathByUserId(Integer userId);
    List<String> getResourceLinkPathByUserIdAndDateAsc(Integer userId);
    List<String> getResourceLinkPathByUserIdAndDateDesc(Integer userId);
    String getApplicationPath();
    String getPrivateResourceAbsolutePath(String resourcePath);
    String getPublicUriPath(String resourcePath);
    Integer getUserIdByResourceId(Integer id);
    int getResourceLinkIdByPath(String path);
    String getPublicUriByResourceId(Integer resourceId);
    ResourceLink getResourceLinkById(Integer id);
    ResourceLink getResourceLinkByPath(String resourcepath);
    List<ResourceLink> getResourceLinkByUserId(Integer userId);
    List<ResourceLink> getResourceLinkByUserIdAndDateAsc(Integer userId);
    List<ResourceLink> getResourceLinkByUserIdAndDateDesc(Integer userId);
}
